export const getMenuData = () => {
  return [
    {
      name: '首页',
      icon: 'icon iconfont icon-home',
      show: true,
      path: '/',
    },
    // {
    //   name: '监控大盘',
    //   icon: 'icon iconfont icon-electronics',
    //   show: true,
    //   path: '/dashboard',
    // },
    {
      name: 'icons图表',
      icon: 'icon iconfont icon-pin',
      show: true,
      path: '/icons',
    },
    {
      name: '主题颜色',
      icon: 'icon iconfont icon-seban',
      show: true,
      path: '/themes',
    },
    {
      name: '监控台',
      icon: 'icon iconfont icon-electronics',
      show: true,
      path: '/monitor',
      children: [
        {
          name: '分析页',
          path: '/monitor/page1',
        },
        {
          name: '监控页',
          path: '/monitor/page2',
        },
      ],
    },
    {
      name: '列表页',
      icon: 'icon iconfont icon-file',
      show: true,
      path: '/listPage',
      children: [
        {
          name: 'table列表',
          path: '/listPage/table',
        },
      ],
    },
    {
      name: '表单页',
      icon: 'icon iconfont icon-edit',
      show: true,
      path: '/form',
      children: [
        {
          name: '基础表单',
          path: '/form/base',
        },
      ],
    },
    {
      name: '详情页',
      icon: 'icon iconfont icon-image-text',
      show: true,
      path: '/detail',
    },
    {
      name: '结果',
      icon: 'icon iconfont icon-success',
      show: true,
      path: '/result',
      children: [
        {
          name: '成功页',
          path: '/result/success',
        },
        {
          name: '失败页',
          path: '/result/fail',
        },
      ],
    },
    {
      name: '异常',
      icon: 'icon iconfont icon-meh',
      show: true,
      path: '/error',
      children: [
        {
          name: '403 无权限',
          path: '/error/403',
        },
        {
          name: '404 找不到',
          path: '/error/404',
        },
        {
          name: '500 服务器异常',
          path: '/error/500',
        },
      ],
    },
    {
      name: '账户',
      icon: 'icon iconfont icon-run-up',
      show: true,
      path: '/account',
      children: [
        {
          name: '登录',
          path: '/account/login',
        },
        {
          name: '注册',
          path: '/account/register',
        },
      ],
    },
  ];
};

export const getPermissionRouteList = () => {
  return [
    {
      name: '首页',
      path: '/',
    },
    {
      name: '监控大盘',
      path: '/dashboard',
    },
    {
      name: 'icons图表',
      path: '/icons',
    },
    {
      name: '主题颜色',
      path: '/themes',
    },
    {
      name: '监控台',
      path: '/monitor',
      children: [
        {
          name: '分析页',
          path: '/monitor/page1',
        },
        {
          name: '监控页',
          path: '/monitor/page2',
        },
      ],
    },
    {
      name: '列表页',
      path: '/listPage',
      children: [
        {
          name: 'table列表页',
          path: '/listPage/table',
        },
      ],
    },
    {
      name: '表单页',
      path: '/form',
      children: [
        {
          name: '基础表单',
          path: '/form/base',
        },
      ],
    },
    {
      name: '详情页',
      path: '/detail',
    },
    {
      name: '结果',
      path: '/result',
      children: [
        {
          name: '成功页',
          path: '/result/success',
        },
        {
          name: '失败页',
          path: '/result/fail',
        },
      ],
    },
    {
      name: '异常',
      path: '/error',
      children: [
        {
          name: '403 无权限',
          path: '/error/403',
        },
        {
          name: '404 找不到',
          path: '/error/404',
        },
        {
          name: '500 服务器异常',
          path: '/error/500',
        },
        {
          name: '未授权页',
          path: '/error/unAuth',
        },
      ],
    },
    {
      name: '账户',
      path: '/account',
      children: [
        {
          name: '登录',
          path: '/account/login',
        },
        {
          name: '注册',
          path: '/account/register',
        },
      ],
    },
  ];
};
